<?php
namespace app\front\controller;

use app\BaseController;
use app\libs\Token;
use think\facade\Request;
class FrontAuth extends BaseController
{
  protected $uid;
  protected function initialize()
  {
    $authorization = Request::header('authorization');
    $this -> uid = Token::parseToken($authorization)->uid;
  } 
}
